#include "netif_pcap.h"
#include "sys.h"
#include "stdtypes.h"
#include "exmsg.h"

void recv_thread(void *arg) {
    LOG_INFO("recv thread is running...\n");
    while (1) {
        sys_sleep(1);
    }
}

void xmit_thread(void *arg) {
    LOG_DEBUG("xmit thread is running...\n");
    while (1) {
        // LOG_DEBUG("xmit working...\n");
        // LOG_INFO("xmit working...\n");
        // LOG_WARNNING("xmit working...\n");
        // LOG_ERROR("xmit working...\n");
        // LOG_FATAL("xmit working...\n");
        // exmsg_netif_in();
        sys_sleep(3000);
    }
}

net_err_t netif_pcap_open(void) {
    sys_thread_create(recv_thread, (void *)0);
    sys_thread_create(xmit_thread, (void *)0);
}